package com.in.utils;

import android.content.Context;
import android.content.SharedPreferences;
import android.widget.Toast;

public class ErrorShow {
	
	private Context context;
	private SharedPreferences pref ;
	
	public ErrorShow(Context con){
		context = con;
	}
	
	public void showErrMsg(int errorCode, String explane){
		
		if(errorCode==1){
			Toast.makeText(context, "u have no money..",1).show();
		}else if(errorCode==2){
			Toast.makeText(context, "u have full level...",1).show();
		}else if(errorCode==3){
			Toast.makeText(context, "u have full count...",1).show();
		}else if(errorCode==4){
			Toast.makeText(context, "u have no soojung...",1).show();
		}else{
			Toast.makeText(context, explane,1).show();
		}
		
	}
	
}
